{include file="common/header"/}
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-row">
                        <form method="post" action="" class="layui-form layui-form-pane" lay-filter="form">
                            <input type="hidden" name="id" value="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">字典分组</label>
                                <div class="layui-input-inline">
                                    <select lay-verify="required" name="group" title="必须选择一个栏目">
                                        <option value="">请选择分组</option>
                                        {volist name='confGroup' id='vo' key="k"}
                                        <option value="{$key}" {if $info && $info['group']==$key} selected {/if}>{$vo}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">字典键值</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="name" lay-verify="required" placeholder="请输入键值" class="layui-input"> 
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">字典名称</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="title" lay-verify="required" placeholder="请输入字典名称" class="layui-input"> 
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">字典内容</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="value" lay-verify="required" placeholder="请输入字典内容" class="layui-input"> 
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">描述</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="tip" placeholder="请输入描述" class="layui-input"> 
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">字典类型</label>
                                <div class="layui-input-inline">
                                    <select lay-verify="required" name="type" title="必须选择一个栏目">
                                        <option value="">请选择类型</option>
                                        <option value="string" selected>字符串</option>
                                        <option value="text" >文本</option>
                                        <option value="file">文件</option>
                                        <option value="radio">选项</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">提交</button>
                                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="common/footer"/}
<script>
layui.use(['form'], function () {
    var form = layui.form;
    var info = '';
    info = {:json_encode($info)};
    form.val("form", info);
    form.render();

});
</script>